/*
 * Copyright (c) 2018 the original author or authors.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *     http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.dyzx.hbb.aliyun.product;


import com.dyzx.hbb.aliyun.sms.utils.SmsTemplate;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;

/**
 * 阿里云 SMS 配置属性.
 *
 * @author cn-src
 */
@Getter
@Setter
@ConfigurationProperties(prefix = "aliyun.product")
public class ProductProperties implements InitializingBean {

/*    private String accessKeyId;
    private String accessKeySecret;
    private String signName;*/

/*    appKey: 203738244
    appSecret: pkf2ggrvmd33wponedqvd9bavpkm96qk
    appCode: 5a0a05a5a2cd4489ab51ef7d83e24c73*/
    private String appKey;
    private String appSecret;
    private String appCode;

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("appKey:"+appKey);

    }
}
